package com.example.tvmenu.adapter;

import android.content.Context;
import android.view.KeyEvent;
import android.view.View;

import com.example.tvmenu.DebugLog;
import com.example.tvmenu.R;
import com.example.tvmenu.adapter.base.CommonRecyclerViewHolder;
import com.example.tvmenu.data.ItemBean;

/**
 * Created Date 2019/3/19
 *
 * @author liangkun
 * description：
 */
public class MenuSonAdapter extends CommonRecyclerViewAdapter<ItemBean> {
    private boolean isMunu;
    private int onKey; //键值


    public MenuSonAdapter(Context context, boolean isMunu) {
        super(context);
        this.isMunu = isMunu;
    }

    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_list_menu;
    }


    @Override
    public void onBindItemHolder(CommonRecyclerViewHolder helper, ItemBean item, final int position) {
        helper.getHolder().setText(R.id.title, item.getTitle());
    }

}
